//
//  NoteModel.m
//  网络记事本
//
//  Created by wukeng on 16/4/3.
//  Copyright © 2016年 wukeng. All rights reserved.
//

#import "NoteModel.h"

@implementation NoteModel

-(instancetype)initWithDict:(NSDictionary *)dict{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dict];
    }
    return self;
}

+(instancetype)noteModelWithDict:(NSDictionary *)dict{
    return [[self alloc] initWithDict:dict];
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    if ([key isEqualToString:@"ID"]) {
        [self setValue:value forKey:@"noteID"];
    }
}
@end
